/*******************************************************************************
 * Copyright 2011 Andrea Guitto
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.andreaguitto.mobile.android.framework.base.interfaces;

import android.os.Bundle;



public interface AGActivityLayerInterface {
	
	int LAYER_ADDED = 90;
	int ACTION_CREATE = 0;
	int ACTION_START = 1;
	int ACTION_RESUME = 2;
	int ACTION_PAUSE = 3;
	int ACTION_STOP = 4;
	int ACTION_DESTROY = 5;
	int ACTION_SAVE_INSTANCE = 6;
	int ACTION_RESTORE_INSTANCE = 7;
	int LAYER_REMOVED = 91;

	/**
	 * To force to set LOGTAG
	 */
	String getLogTag();	
	
	/**
	 * Called after layer added
	 */
	void onLayerAdded();
	
	/**
	 * Called before layer removed
	 */
	void onLayerRemoving();	
	

	/**
	 * Called before activity onStart
	 */
	void onCreate(Bundle savedInstanceState);
	
	
	/**
	 * Called before activity onStart
	 */
	void onStart();

	/**
	 * Called before activity onResume
	 */
	void onResume();

	/**
	 * Called before activity onPause
	 */		
	void onPause();
	
	/**
	 * Called before activity onStop
	 */	
	void onStop();

	/**
	 * Called before activity onDestroy
	 */
	void onDestroy();
	
	/**
	 * Called before activity onSaveInstanceState
	 */
	void onSaveInstanceState(Bundle state);

	/**
	 * Called before activity onRestoreInstanceState
	 */
	void onRestoreInstanceState(Bundle state);		
	
}
